$(document).ready(function () {
    left();
})

function left(){
    var user=localStorage.getItem(schoolLoginUserInfo);
    if(user==null){
        toLogin();
    }
    var res =  eval('(' + user+ ')');
    if(res.role==4){//如果是管理员
        sysLeft();
    }
}

function sysLeft(){
var left='<dl class="system_log">\n' +
    '            <dt onclick="leftsidebar_boxClick(this)">\n' +
    '                <img class="icon1" src="../img/htmlAll/coin03.png" name="icon1"/><img class="icon2"\n' +
    '                                                                         src="../img/htmlAll/coin04.png"/> 用户管理<img\n' +
    '                    class="icon3"\n' +
    '                    src="../img/htmlAll/coin19.png"/><img class="icon4"\n' +
    '                                                          src="../img/htmlAll/coin20.png"/>\n' +
    '            </dt>\n' +
    '            <dd>\n' +
    '                <img class="coin11" src="../img/htmlAll/coin111.png"/><img class="coin22"\n' +
    '                                                                           src="../img/htmlAll/coin222.png"/><a\n' +
    '                    class="cks" onclick="cksClick(this)" href="main.html"\n' +
    '                    target="main">用户列表</a><img class="icon5" src="../img/htmlAll/coin21.png"/>\n' +
    '            </dd>\n' +
    '            <dd>\n' +
    '                <img class="coin11" src="../img/htmlAll/coin111.png"/><img class="coin22"\n' +
    '                                                                           src="../img/htmlAll/coin222.png"/><a\n' +
    '                    class="cks" onclick="cksClick(this)" href="p2.html?role=1"\n' +
    '                    target="main">添加学生</a><img class="icon5" src="../img/htmlAll/coin21.png"/>\n' +
    '            </dd>\n' +
    '            <dd>\n' +
    '                <img class="coin11" src="../img/htmlAll/coin111.png"/><img class="coin22"\n' +
    '                                                                           src="../img/htmlAll/coin222.png"/><a\n' +
    '                    class="cks" onclick="cksClick(this)" href="p3.html?role=2"\n' +
    '                    target="main">添加教师</a><img class="icon5" src="../img/htmlAll/coin21.png"/>\n' +
    '            </dd>\n' +
    '            <dd>\n' +
    '                <img class="coin11" src="../img/htmlAll/coin111.png"/><img class="coin22"\n' +
    '                                                                           src="../img/htmlAll/coin222.png"/><a\n' +
    '                    class="cks" onclick="cksClick(this)" href="p3.html?role=3"\n' +
    '                    target="main">添加专家</a><img class="icon5" src="../img/htmlAll/coin21.png"/>\n' +
    '            </dd>\n' +
    '        </dl>'+'<dl class="system_log">\n' +
    '\t\t\t\t<dt onclick="leftsidebar_boxClick(this)">\n' +
    '\t\t\t\t\t<img class="icon1" src="../img/htmlAll/coin01.png" /><img class="icon2"\n' +
    '\t\t\t\t\t\tsrc="../img/htmlAll/coin02.png" /> 系部管理<img class="icon3"\n' +
    '\t\t\t\t\t\tsrc="../img/htmlAll/coin19.png" /><img class="icon4"\n' +
    '\t\t\t\t\t\tsrc="../img/htmlAll/coin20.png" />\n' +
    '\t\t\t\t</dt>\n' +
    '\t\t\t\t<dd>\n' +
    '\t\t\t\t\t<img class="coin11" src="../img/htmlAll/coin111.png" /><img class="coin22"\n' +
    '\t\t\t\t\t\tsrc="../img/htmlAll/coin222.png" /><a class="cks" onclick="cksClick(this)" href="department/decpartment.html"\n' +
    '\t\t\t\t\t\ttarget="main">系部列表</a><img class="icon5" src="../img/htmlAll/coin21.png" />\n' +
    '\t\t\t\t</dd>\n' +
    '\t\t\t\t<dd>\n' +
    '\t\t\t\t\t<img class="coin11" src="../img/htmlAll/coin111.png" /><img class="coin22"\n' +
    '\t\t\t\t\t\tsrc="../img/htmlAll/coin222.png" /><a class="cks" onclick="cksClick(this)" href="department/insert.html"\n' +
    '\t\t\t\t\t\ttarget="main">系部添加</a><img class="icon5" src="../img/htmlAll/coin21.png" />\n' +
    '\t\t\t\t</dd>\n' +
    '\t\t\t</dl>'+'<dl class="system_log">\n' +
    '\t\t\t\t<dt onclick="leftsidebar_boxClick(this)">\n' +
    '\t\t\t\t\t<img class="icon1" src="../img/htmlAll/coin11.png" /><img class="icon2"\n' +
    '\t\t\t\t\t\tsrc="../img/htmlAll/coin12.png" /> 数据统计<img class="icon3"\n' +
    '\t\t\t\t\t\tsrc="../img/htmlAll/coin19.png" /><img class="icon4"\n' +
    '\t\t\t\t\t\tsrc="../img/htmlAll/coin20.png" />\n' +
    '\t\t\t\t</dt>\n' +
    '\t\t\t\t<dd>\n' +
    '\t\t\t\t\t<img class="coin11" src="../img/htmlAll/coin111.png" /><img class="coin22"\n' +
    '\t\t\t\t\t\tsrc="../img/htmlAll/coin222.png" /><a class="cks" onclick="cksClick(this)" target="main" href="backSc/stuS1.html">学生评分数据统计</a><img class="icon5" src="../img/htmlAll/coin21.png" />\n' +
    '\t\t\t\t</dd>\n' +
    '\t\t\t\t<dd>\n' +
    '\t\t\t\t\t<img class="coin11" src="../img/htmlAll/coin111.png" /><img class="coin22"\n' +
    '\t\t\t\t\t\tsrc="../img/htmlAll/coin222.png" /><a class="cks" onclick="cksClick(this)" target="main" href="backSc/teaS1.html">同行评分数据统计</a><img class="icon5" src="../img/htmlAll/coin21.png" />\n' +
    '\t\t\t\t</dd>\n' +
    '\t\t\t\t<dd>\n' +
    '\t\t\t\t\t<img class="coin11" src="../img/htmlAll/coin111.png" /><img class="coin22"\n' +
    '\t\t\t\t\t\tsrc="../img/htmlAll/coin222.png" /><a class="cks" onclick="cksClick(this)" target="main" href="backSc/expS1.html">专家评分数据统计</a><img class="icon5" src="../img/htmlAll/coin21.png" />\n' +
    '\t\t\t\t</dd>\n' +
    '\t\t\t\t<dd>\n' +
    '\t\t\t\t\t<img class="coin11" src="../img/htmlAll/coin111.png" /><img class="coin22"\n' +
    '\t\t\t\t\t\tsrc="../img/htmlAll/coin222.png" /><a class="cks" onclick="cksClick(this)" target="main" href="backSc/betS1.html">全学院教师评比</a><img class="icon5" src="../img/htmlAll/coin21.png" />\n' +
    '\t\t\t\t</dd>\n' +
    '\t\t\t\t<dd>\n' +
    '\t\t\t\t\t<img class="coin11" src="../img/htmlAll/coin111.png" /><img class="coin22"\n' +
    '\t\t\t\t\t\tsrc="../img/htmlAll/coin222.png" /><a class="cks" onclick="cksClick(this)" target="main" href="backSc/depS1.html">系教师评比</a><img class="icon5" src="../img/htmlAll/coin21.png" />\n' +
    '\t\t\t\t</dd>\n' +
    '\t\t\t</dl>'
    ;



    $("#box").empty();
    $("#box").append(left);
}